package ink.xiaobaibai.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 报表对象
 * @author: 小白白
 * @create: 2021-05-28
 **/

@Data
@NoArgsConstructor
public class OnePayReportFormBo {

    public OnePayReportFormBo(String orderId, Integer clientUserId, BigDecimal amount, String deviceCode, String adminUserName, String depName, Date createTime, String clienNickName, String clientUserPhone, String adminUserPhone) {
        this.orderId = orderId;
        this.clientUserId = clientUserId;
        this.amount = amount;
        this.deviceCode = deviceCode;
        this.adminUserName = adminUserName;
        this.depName = depName;
        this.createTime = createTime;
        this.clientNickName = clienNickName;
        this.userPhone = clientUserPhone;
        this.adminPhone = adminUserPhone;
    }

    /**
     * 订单号
     */
    @ExcelProperty("订单号")
    @ColumnWidth(18)
    private String orderId;

    /**
     * 客户id
     */
    @ExcelProperty("客户id")
    private Integer clientUserId;

    /**
     * 客户昵称
     */
    @ExcelProperty("客户昵称")
    private String clientNickName;

    /**
     * 客户手机号码
     */
    @ExcelProperty("客户手机号")
    private String userPhone;

    /**
     * 订单金额
     */
    @ExcelProperty("订单金额")
    @ColumnWidth(11)
    private BigDecimal amount;

//    /**
//     * 对应的机器id
//     */
//    @ExcelProperty("臭氧机器id")
//    private Integer deviceId;

    /**
     * 臭氧机识别码 (联查)
     */
    @ExcelProperty("臭氧机识别码")
    @ColumnWidth(16)
    private String deviceCode;

//    /**
//     * 负责人id
//     */
//    @ExcelProperty("负责人id")
//    private Integer adminUserId;

    /**
     * 负责人姓名 (联查)
     */
    @ExcelProperty("负责人")
    private String adminUserName;

    /**
     * 负责人手机号
     */
    @ExcelProperty("负责人手机号")
    private String adminPhone;

//    /**
//     * 负责人所在部门id
//     */
//    @ExcelProperty("部门id")
//    private Integer depId;

    /**
     * 负责人所在部门名 (联查)
     */
    @ExcelProperty("部门")
    @ColumnWidth(10)
    private String depName;

    /**
     * 创建时间
     */
    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    private Date createTime;

    /**
     * 营业额
     */
    @ExcelProperty(value = "营业额", index = 8)
    private BigDecimal sumAmount;

}
